package com.tjetc.view.impl;

import com.tjetc.pojo.dto.AdminDTO;
import com.tjetc.utils.ScannerUtils;
import com.tjetc.view.AdminLoginPage;

/**
 * @Author: itda
 * @Date: 2024/5/9 14:26
 * @Description: LoginPageImpl
 */
public class AdminLoginPageImpl implements AdminLoginPage {
    @Override
    public AdminDTO login() {
        System.out.println("请输入用户名:");
        String name = ScannerUtils.sc.next();
        System.out.println("请输入密码:");
        String password = ScannerUtils.sc.next();
        return AdminDTO.builder().name(name).password(password).build();
    }
}
